//
//  HPPhotoMainCell.m
//  club
//
//  Created by zhuangyihang on 12/17/15.
//  Copyright © 2015 zhuangyihang. All rights reserved.
//

#import "HPPhotoMainCell.h"

@interface HPPhotoMainCell()


@end

@implementation HPPhotoMainCell

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        self.coverView = [UIImageView new];
        [self.contentView addSubview:self.coverView];
        [self.coverView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.centerX.top.equalTo(self.contentView);
        }];
        self.coverView.layer.cornerRadius = 4;
        self.coverView.clipsToBounds = YES;
        self.coverView.contentMode = UIViewContentModeScaleAspectFill;
    }
    return self;
}
@end
